<?php
namespace app\api\controller;
use app\common\BaseController;
use app\api\model\Gift as giftModel;
use think\Db;
use app\common\Logs;
class Gift extends BaseController{    
    public function __construct(GiftModel $giftModel){
        parent::__construct();
        $this->model = $giftModel;
    }
    public function index(){
        $params = $this->request->param();
        $data = $this->model->allowField(true)->giftList($params);        
        return $data;
    } 
}
